package com.jinzhi.jinzhidata.service.impl;

import com.jinzhi.jinzhidata.dataobject.ArticleType;
import com.jinzhi.jinzhidata.dataobject.ResourceType;
import com.jinzhi.jinzhidata.repository.ArticleTypeRepository;
import com.jinzhi.jinzhidata.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author vansl
 * @description
 * @date 2020-01-05 19:20
 **/
@Service
public class ArticleTypeServiceImpl implements ArticleTypeService {

    @Autowired
    ArticleTypeRepository articleTypeRepository;

    @Override
    public List<ArticleType> selectArticleTypeList() {
        return articleTypeRepository.findAll();
    }
}
